package cn.microservices.cloud.common.core.enums;

public enum ResultCode {
    LACK_TOKEN("LACK_TOKEN", "缺少token"),
    INVALID_TOKEN("INVALID_TOKEN", "用户身份已过期"),
    LACK_TIMESTAMP("LACK_TIMESTAMP", "缺少timestamp"),
    INVALID_TIMESTAMP("INVALID_TIMESTAMP", "无效的timestamp"),
    LACK_SIGN("LACK_SIGN", "缺少sign"),
    INVALID_SIGN("INVALID_SIGN", "无效的sign"),
    NOT_PERMISSION("NOT_PERMISSION", "用户无权限");
    private String code;
    private String value;

    ResultCode() {
    }

    ResultCode(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
